import { PORT1 } from "./config/servicePort";
export default {
  //获取问题列表
  getProblemList(params) {
    return {
      methods: 'get',
      url: PORT1 + `/feedback/getList`,
      params
    }
  },
  //查询问题类型
  getQsDictionary(params) {
    return {
      methods: 'get',
      url: PORT1 + `/dictionary/getQsDictionary`,
      params
    }
  },
  //根据问题类型查询关键词
  getKeyWordsByTypeId(params) {
    return {
      methods: 'post',
      url: PORT1 + `/dictionary/getKeyWordsByTypeId`,
      params
    }
  },
  //添加问题
  addProblem(params) {
    return {
      methods: 'post',
      url: PORT1 + `/feedback/save`,
      params
    }
  },
  //文件上传
  uploadFile(params) {
    return {
      methods: 'post',
      url: PORT1 + `/qsfile/uploadFile`,
      params
    }
  },
  //添加回复
  addReply(params) {
    return {
      methods: 'post',
      url: PORT1 + `/feedbackReply/addReply`,
      params
    }
  },
  //获取反馈详情
  getInfo(params) {
    return {
      methods: 'post',
      url: PORT1 + `/feedback/getInfo`,
      params
    }
  },
  //添加热点问题
  addHotProblem(params) {
    return {
      methods: 'post',
      url: PORT1 + `/feedback/saveHotspot`,
      params
    }
  },
  //获取热点问题列表
  getHotspotList(params) {
    return {
      methods: 'post',
      url: PORT1 + `/feedback/queryHotspotList`,
      params
    }
  },
  //获取全部热点问题列表
  getAllHotspotList(params) {
    return {
      methods: 'post',
      url: PORT1 + `/feedback/getAllHotspotList`,
      params
    }
  }
}
